package com.ming.TreadPool;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @Auther: tangC
 * @Date: 2020/7/9 15:03
 * @Description:
 */
public class TheadPoolConfig {

    ThreadPoolExecutor executor ;

    public TheadPoolConfig(){
        ArrayBlockingQueue<Runnable> runnables = new ArrayBlockingQueue<Runnable>(1024);
        executor = new ThreadPoolExecutor(5,10,500, TimeUnit.MILLISECONDS,runnables,new ThreadHandler());
    }

}
